If the point a(0 2) is equidistance from the points b(3 p) and c(p 5) find the value of p